#pragma once

#include <time.h>
#include <Windows.h>



class CTimer
{
private:
	__int64 timer_start;
	__int64 stopwatch_start;
	__int64 deltatime_start;
	double secsPerCnt;

public:
	CTimer(void);
	~CTimer(void);
	__int64 getTimer() const;

	double getRunTime() const; //in seconds
	double deltaTime(bool reset = true); //in seconds
	bool stopwatch(int ms, bool reset = true);

	void resetStopWatch(double deltaSec = 0.0);
	void resetDeltaTime(double deltaSec = 0.0);
	void resetRunTime(double deltaSec = 0.0);
	void reset(double deltaSec = 0.0);

	void jump(double deltaSec);
};
